package com.group.medical.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 药品表
 * @TableName tb_drug
 */
@TableName(value ="tb_drug")
@Data
public class Drug implements Serializable {
    /**
     * 药品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 药品价格
     */
    @TableField(value = "drug_price")
    private BigDecimal drugPrice;

    /**
     * 药品名称
     */
    @TableField(value = "drug_name")
    private String drugName;

    /**
     * 药品数量
     */
    @TableField(value = "drug_amount")
    private Integer drugAmount;

    /**
     * 药品作用
     */
    @TableField(value = "drug_effect")
    private String drugEffect;

    /**
     * 药品类型
     */
    @TableField(value = "drugstore_type")
    private String drugstoreType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}